home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / XmeTraitSet.z / XmeTraitSet
Text File  |  1998-10-30  |  6KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmeeeeTTTTrrrraaaaiiiittttSSSSeeeetttt((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV           XXXXmmmmeeeeTTTTrrrraaaaiiiittttSSSSeeeetttt((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmeeeeTTTTrrrraaaaiiiittttSSSSeeeetttt - Installs a trait on a specified object
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           #include <Xm/TraitP.h>
  13.           BBBBoooooooolllleeeeaaaannnn XXXXmmmmeeeeTTTTrrrraaaaiiiittttSSSSeeeetttt(
  14.           XXXXttttPPPPooooiiiinnnntttteeeerrrr oooobbbbjjjjeeeecccctttt,
  15.           XXXXrrrrmmmmQQQQuuuuaaaarrrrkkkk ttttrrrraaaaiiiitttt,
  16.           XXXXttttPPPPooooiiiinnnntttteeeerrrr ttttrrrraaaaiiiitttt____rrrreeeeccccoooorrrrdddd);
  17.  
  18.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  19.           This page documents Motif 2.1.
  20.  
  21.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.           XXXXmmmmeeeeTTTTrrrraaaaiiiittttSSSSeeeetttt installs _t_r_a_i_t on _o_b_j_e_c_t.  Typically,
  23.           XXXXmmmmeeeeTTTTrrrraaaaiiiittttSSSSeeeetttt is called from a widget's ccccllllaaaassssssss____ppppaaaarrrrtttt____iiiinnnniiiittttiiiiaaaalllliiiizzzzeeee
  24.           method. If it is, Motif propagates the trait to all
  25.           subclasses of _o_b_j_e_c_t.
  26.  
  27.           _o_b_j_e_c_t    Specifies the object. Typically, the object is a
  28.                     widget class.
  29.  
  30.           _t_r_a_i_t     Specifies the _X_r_m_Q_u_a_r_k value symbolizing the
  31.                     trait.  Here is the list of _t_r_a_i_t quarks defined
  32.                     by the Motif toolkit:
  33.  
  34.                     _X_m_Q_T_a_c_c_e_s_s_T_e_x_t_u_a_l
  35.                               The _o_b_j_e_c_t can display one primary text
  36.                               parcel.
  37.  
  38.                     _X_m_Q_T_a_c_t_i_v_a_t_a_b_l_e
  39.                               The _o_b_j_e_c_t can become a command button
  40.                               in a DialogBox.
  41.  
  42.                     _X_m_Q_T_c_a_r_e_P_a_r_e_n_t_V_i_s_u_a_l
  43.                               The _o_b_j_e_c_t can borrow its parent's
  44.                               visual information.
  45.  
  46.                     _X_m_Q_T_c_o_n_t_a_i_n_e_r
  47.                               The _o_b_j_e_c_t can manage children holding
  48.                               the _X_m_Q_T_c_o_n_t_a_i_n_e_r trait.
  49.  
  50.                     _X_m_Q_T_c_o_n_t_a_i_n_e_r_I_t_e_m
  51.                               The _o_b_j_e_c_t can be managed by a widget
  52.                               holding the XXXXmmmmQQQQTTTTccccoooonnnnttttaaaaiiiinnnneeeerrrr trait.
  53.  
  54.                     _X_m_Q_T_d_i_a_l_o_g_S_h_e_l_l_S_a_v_v_y
  55.                               The _o_b_j_e_c_t can become a child of
  56.                               XXXXmmmmDDDDiiiiaaaallllooooggggSSSShhhheeeellllllll.
  57.  
  58.                     _X_m_Q_T_j_o_i_n_S_i_d_e
  59.                               The _o_b_j_e_c_t can attach itself to one side
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmeeeeTTTTrrrraaaaiiiittttSSSSeeeetttt((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV           XXXXmmmmeeeeTTTTrrrraaaaiiiittttSSSSeeeetttt((((3333XXXX))))
  71.  
  72.  
  73.  
  74.                               of a suitable parent.
  75.  
  76.                     _X_m_Q_T_m_e_n_u_S_a_v_v_y
  77.                               The _o_b_j_e_c_t can become a menu child.
  78.  
  79.                     _X_m_Q_T_m_e_n_u_S_y_s_t_e_m
  80.                               The _o_b_j_e_c_t can manage a menu system.
  81.  
  82.                     _X_m_Q_T_n_a_v_i_g_a_t_o_r
  83.                               The _o_b_j_e_c_t can act as a navigator to a
  84.                               scrollable widget.
  85.  
  86.                     _X_m_Q_T_s_c_r_o_l_l_F_r_a_m_e
  87.                               The _o_b_j_e_c_t can handle one or more
  88.                               widgets holding the _X_m_Q_T_n_a_v_i_g_a_t_o_r trait.
  89.  
  90.                     _X_m_Q_T_s_p_e_c_i_f_y_R_e_n_d_e_r_T_a_b_l_e
  91.                               The _o_b_j_e_c_t can supply the names of its
  92.                               default render tables.
  93.  
  94.                     _X_m_Q_T_t_a_k_e_s_D_e_f_a_u_l_t
  95.                               The _o_b_j_e_c_t can change its appearance to
  96.                               show that it is the default button.
  97.  
  98.                     _X_m_Q_T_t_r_a_n_s_f_e_r
  99.                               The _o_b_j_e_c_t can serve as either the
  100.                               source or the destination (or possibly
  101.                               both) of a data transfer operation
  102.  
  103.           _t_r_a_i_t__r_e_c_o_r_d
  104.                     Specifies the name of the structure that holds the
  105.                     trait information.  Specifying _N_U_L_L turns off the
  106.                     trait for _o_b_j_e_c_t and its subclasses.
  107.  
  108.      RRRREEEETTTTUUUURRRRNNNN
  109.           Returns _T_r_u_e if the trait was succesfully installed on
  110.           _o_b_j_e_c_t.  Otherwise, it returns _F_a_l_s_e. One possible reason
  111.           for failure is that the _t_r_a_i_t__r_e_c_o_r_d was not declared.
  112.  
  113.      RRRREEEELLLLAAAATTTTEEEEDDDD
  114.           XXXXmmmmeeeeTTTTrrrraaaaiiiittttGGGGeeeetttt(3).
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/24/98)
  130.  
  131.  
  132.  
  133.